Skip to content

auth-service v10 and wallet-service changes. - #44

Open
grvgoel81 wants to merge 27 commits into
masterfrom
feat/auth_service_v10_change_plus_input_changes
Open

auth-service v10 and wallet-service changes.#44
grvgoel81 wants to merge 27 commits into
masterfrom
feat/auth_service_v10_change_plus_input_changes

Conversation

@grvgoel81

@grvgoel81 grvgoel81 commented Jul 28, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

Bring the Unity SDK in line with Auth Service v10 / Wallet Services v5, including updated project config and login option shapes. Also fix Android Custom Tab deep-link return and Editor/Android session authorize so login, logout, and session restore work reliably.

Jira: https://toruslabs.atlassian.net/browse/PD-4518, https://toruslabs.atlassian.net/browse/PD-4552

Description

  • Migrate to Auth Service v10 APIs and input types (authConnection / authConnectionConfig, build env, related options)
  • Update Wallet Services to v5 and wire wallet UI / services config through init params
  • Update project config fetch (/api/v2/configuration) and merge dashboard embeddedWalletAuth / whitelist into options
  • Fix session store authorize: send JSON {key, namespace}, use URI-origin without path (and preserve custom-scheme host casing)
  • Android: Web3AuthActivity + manifest deep-link handling for torusapp:// Custom Tab redirects
  • Editor: local redirect origin for authorize/logout; quieter session restore; logout always clears local state
  • Sample / example updates for mainnet production config

How has this been tested?

  • On Unity Editor and Android device

Screenshots (if appropriate):

Screen.Recording.2026-08-13.at.2.43.49.PM.mov
Screen.Recording.2026-08-13.at.4.58.01.PM.mov

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code requires a db migration.

Note

High Risk
Large breaking API and auth/wallet integration changes affect login, session restore, dapp-share keys, and chain selection for all integrators; misconfiguration could break production apps until migrated.

Overview
Updates the Unity Web3Auth SDK for auth-service v10 and wallet-service v5, with a broad breaking rename from verifier/provider login to auth connections.

Configuration & API: Project config is fetched from /api/v2/configuration with build_env; the response model adds chains, smart accounts, wallet UI, and embedded-wallet auth. Init options use authConnectionConfig (replacing loginConfig), authBuildEnv, web3AuthNetwork, defaultChainId, and useSFAKey (replacing useCoreKitKey). Provider / TypeOfLogin are removed in favor of AuthConnection; LoginConfigItem becomes AuthConnectionConfig with authConnectionId.

Wallet & signing: launchWalletServices(ChainConfig) is replaced by showWalletUI, and request no longer takes per-call chain config—chains, embeddedWalletAuth, and smartAccounts are injected from cached project config. Auth/wallet base URLs point at v10 / v5.

Public surface: LoginParams uses authConnection (not loginProvider); UserInfo uses authConnectionId / userId; keys are exposed via getPrivateKey / getEd25519PrivateKey with JSON-mapped privateKey on the response. The sample app is updated to match.

Reviewed by Cursor Bugbot for commit b08607a. Configure here.

grvgoel81 and others added 20 commits April 17, 2025 08:47
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
…other input params

Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
grvgoel81 and others added 3 commits July 30, 2025 11:06
Signed-off-by: Gaurav Goel <gaurav@tor.us>
…s_input_changes' into feat/auth_service_v10_change_plus_input_changes
…anges

Resolve conflicts by keeping auth-service v10 API changes while
preserving master bug fixes for clientId resolution and session parsing.

Co-authored-by: Cursor <cursoragent@cursor.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 6 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b08607a. Configure here.

Comment thread Assets/Plugins/Web3AuthSDK/Samples/Web3AuthSample.cs Outdated
Comment thread Assets/Plugins/Web3AuthSDK/Types/Web3AuthOptions.cs Outdated
Comment thread Assets/Plugins/Web3AuthSDK/Web3Auth.cs
Comment thread Assets/Plugins/Web3AuthSDK/Types/ExtraLoginOptions.cs Outdated
Comment thread Assets/Plugins/Web3AuthSDK/Types/WalletServicesConfig.cs Outdated
Comment thread Assets/Plugins/Web3AuthSDK/Types/SmartAccountsConfig.cs Outdated
@grvgoel81 grvgoel81 self-assigned this Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant